﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="zeus.Web.Controllers" %>

<asp:Content ID="headContent" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
    
    <link href="<%= ResolveUrl("~") %>Content/smoothness/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" />
    <link href="<%= ResolveUrl("~") %>Content/nyroModal.css" rel="stylesheet" type="text/css" />
    <link href="<%= ResolveUrl("~") %>Scripts/msdropdown/dd.css" rel="stylesheet" type="text/css" />

 
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery-ui-1.8.1.custom.min.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery.nyroModal-1.6.2.pack.js"></script>     
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/msdropdown/js/jquery.dd.js"></script>  
    
<title>Eventos</title>
<script type="text/javascript">
        $("#divLoading").ajaxStart(function () {
            $(this).show();
        });

        $("#divLoading").ajaxStop(function () {
            $(this).hide();
        });

        $(function () {
            $("#tabs").tabs({
                ajaxOptions: {
                    error: function (xhr, status, index, anchor) {
                        $(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
                    }
                }
            });
        });

        $("#tabs").ajaxComplete(function (event, request, settings) {
            alert("ajaxCompleted");
        });


	</script>

</asp:Content>

<asp:Content ID="menuContent" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
        
</asp:Content>

<asp:Content ID="mainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    
    <p>
     <label for="buscar">Buscar:</label>
     <%= Html.TextBox("buscar") %>
     <%= Html.Button("buscar", "Buscar", HtmlButtonType.Button) %>
     <a href="NuevoEvento" class="nyroModal">Nuevo</a>
    </p>


    <div id="divLoading" style="display:none">Cargando...</div>
    <p>
        <div id="tabs">
	        <ul>
		        <li><a href="OpcionEvento">Eventos</a></li>
		        <li><a href="OpcionTipo">Tipos</a></li>		        
	        </ul>	        
        </div>     
    </p>
</asp:Content>
